const path = require('path')
const htmlPlugin = require('html-webpack-plugin')

module.exports = {
    entry: path.resolve(__dirname, 'index.js'),
    output: {
        path: __dirname,
        filename: 'build/index.js'  
    },
    mode: 'development',

    devServer: {
        hot: true,
        open: true,
        port: 4499,
    },

    plugins: [
        new htmlPlugin({
            template: path.resolve(__dirname, 'index.html'),
            filename: 'index.html',
            inject: false
        })
    ]
}